/*
 定义全局的枚举
 */
// 示例：
//typedef NS_ENUM(NSInteger, MapUsedType) {
//    MapUsedTypeByKeywordsSearch = 0,//根据关键字来搜索POI
//    MapUsedTypeByIdSearch,//根据Id来搜索POI
//};

#ifndef EnumMacros_h
#define EnumMacros_h

//消息处理分类
typedef NS_ENUM(NSInteger, SourceType) {
    SourceTypeSplash,//闪屏点击
    SourceTypeMessage,//消息列表点击
    SourceTypePush,//推送点击
    SourceTypeBanner,//banner点击
};

// 页面转换类型
typedef enum : NSUInteger {
    ViewTransitionsPush=1,///<Push
    ViewTransitionsPresent=2,///<Present
} ViewTransitions;



#pragma mark - Block
typedef void(^BtnBlock)(UIButton *btn);
typedef void(^StrBlock)(NSString *str);
typedef void(^StrStrBlock)(NSString *str0,NSString *str1);
typedef void(^StrIntBlock)(NSString *str,int index);
typedef void(^DictBlock)(NSDictionary *dict);
typedef void(^ArrBlock)(NSMutableArray *arr);
typedef void(^ArrArrBlock)(NSMutableArray *arr0,NSMutableArray *arr1);
typedef void(^IntegerBlock)(NSInteger num);
typedef void(^Block)(void);
typedef void(^ModelBlock)(id model,NSString *msg);
typedef void(^DataBlock)(NSArray *arr,NSString *msg);
typedef void(^SuccessBlock)(id responseObject);

#endif /* EnumMacros_h */
